//package com.example.util;
//
//import com.example.mapper.SbMessageMapper;
//import org.apache.catalina.Executor;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.PostConstruct;
//import java.util.List;
//import java.util.Map;
//import java.util.concurrent.ExecutorService;
//import java.util.concurrent.Executors;
//
//@Component
//public class electronicFenceUtil {
//
//    @Autowired
//    private SbMessageMapper sbMessageMapper;
//    @PostConstruct
//    public void init(){
//        ExecutorService executorService = Executors.newFixedThreadPool(2);
//
//        while (true)
//      List<Map<String,String>> mapList= sbMessageMapper.seletALlElectronicFenceInformation();
//        for (Map<String, String> map : mapList) {
//
//        }
//
//    }
//
//}
